/**
 * setting moudle api
 */

import base from "./base";
import axios from "@/utils/axios";

const setting = {
  getAllWifi(){
    return axios.get(base.appBaseUrl + '/wifi/all');
  },
  addWifi(params){
    return axios.post(base.appBaseUrl + '/wifi/add', params);
  },
  updateWifi(params){
    return axios.put(base.appBaseUrl + '/wifi/update', params);
  },
  deleteWifi(params){
    return axios.delete(base.appBaseUrl + '/wifi/delete', {params:params});
  },
  getPublicHoliday(){
    return axios.get(base.webBaseUrl + '/holiday/get');
  }
}

export default setting;
